package alp.starcode.framework.db.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 用户表(users)
 * </p>
 *
 * @author yanglin
 * @since 2021-11-29
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("users")
public class Users extends Model<Users> {

    private static final long serialVersionUID=1L;

    /**
     * 用户Uuid
     */
    @TableId("userUuid")
    private String userUuid;

    /**
     * 店铺Uuid
     */
    @TableField("storeUuid")
    private String storeUuid;

    /**
     * 用户账号
     */
    @TableField("userAccount")
    private String userAccount;

    /**
     * 用户密码
     */
    @TableField("userPassword")
    private String userPassword;

    /**
     * 用户名称
     */
    @TableField("userName")
    private String userName;

    /**
     * 用户类型（1.商家2.买家3.外卖员4.管理员）
     */
    @TableField("userType")
    private String userType;

}
